package cn.hx.admin.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 系统访问记录(LoginInfor)实体类
 *
 * @author makejava
 * @since 2023-12-11 18:02:54
 */
public class LoginInfor implements Serializable {
    private static final long serialVersionUID = 768163924374284241L;
    /**
     * 访问ID
     */
    private Integer id;
    /**
     * 用户账号
     */
    private String userName;
    /**
     * 登录状态
     */
    private String type;
    /**
     * 登录IP地址
     */
    private String ipaddr;
    /**
     * 浏览器类型
     */
    private String loginBrowser;
    /**
     * 操作系统
     */
    private String operatingSystem;
    /**
     * 操作记录
     */
    private String operation;
    /**
     * 操作时间
     */
    private Date loginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getIpaddr() {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr) {
        this.ipaddr = ipaddr;
    }

    public String getLoginBrowser() {
        return loginBrowser;
    }

    public void setLoginBrowser(String loginBrowser) {
        this.loginBrowser = loginBrowser;
    }

    public String getOperatingSystem() {
        return operatingSystem;
    }

    public void setOperatingSystem(String operatingSystem) {
        this.operatingSystem = operatingSystem;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    @Override
    public String toString() {
        return "LoginInfor{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", type='" + type + '\'' +
                ", ipaddr='" + ipaddr + '\'' +
                ", loginBrowser='" + loginBrowser + '\'' +
                ", operatingSystem='" + operatingSystem + '\'' +
                ", operation='" + operation + '\'' +
                ", loginTime=" + loginTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}

